.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f0f2f5;
}

header {
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.controls {
  padding: 15px;
  background: #fff;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.playback-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.playback-controls button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
  min-width: 80px;
}

.playback-controls button:hover {
  background: #40a9ff;
}

.playback-controls button:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.speed-control input[type="range"] {
  flex: 1;
}

.speed-control span {
  min-width: 80px;
  color: #666;
}

.map-container {
  flex: 1;
  min-height: 400px;
  margin: 0 20px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.info-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 300px;
}

.info-panel h3 {
  margin-bottom: 10px;
  color: #333;
}

.current-info p {
  margin: 5px 0;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  header h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .controls {
    margin: 10px;
    padding: 10px;
  }

  .playback-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .playback-controls button {
    width: 100%;
  }

  .speed-control {
    width: 100%;
  }

  .map-container {
    margin: 0 10px 10px;
    min-height: 300px;
  }

  .info-panel {
    position: static;
    margin: 10px;
    max-width: none;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .app {
    background: #141414;
  }

  header {
    background: #1f1f1f;
  }

  header h1 {
    color: #fff;
  }

  .controls {
    background: #1f1f1f;
  }

  .speed-control span {
    color: #999;
  }

  .info-panel {
    background: #1f1f1f;
  }

  .info-panel h3 {
    color: #fff;
  }

  .current-info p {
    color: #999;
  }
} 